<div id="head" style="padding:1px;background:#D5EDB3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  rowspan="2" width="382" height="101"></td>
    <td height="50" id="logo" valign="bottom" align="center" nowrap="nowrap">A.D. LISTING</td>
  </tr>
  <tr>
    <td height="51" align="center" valign="top" class="STYLE1" id="tagline">便利な検索連動型キーワード広告を管理</td>
  </tr>

  <tr>
    <td colspan="2" bgcolor="#5C743D">
    	<img src="/listing/images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

  <tr>
    <td colspan="2" bgcolor="#99CC66" background="/listing/images/mm_dashed_line.gif"><img src="/listing/images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>

  <tr bgcolor="#99CC66">
  	<td colspan="2" id="dateformat" height="20">
    	<table width="100%">
        <tr>
        <?php
		
        		session_start();	
				if(strpos ($_SERVER['REQUEST_URI'],"Login.php") == false
				&& strpos ($_SERVER['REQUEST_URI'],"Regist.php") == false
				&& strpos ($_SERVER['REQUEST_URI'],"LostPass.php") == false
				&& strpos ($_SERVER['REQUEST_URI'],"RegistResult.php") == false
				&& strpos ($_SERVER['REQUEST_URI'],"RegistNew.php") == false)
				{
					if($_SESSION["memberId"] != null && $_SESSION["memberId"] != "")
					{												
						echo "<td width=45% class=subHeader>"."[".$_SESSION["company"]."]".$_SESSION["loginId"]."様 </td>";
					}else{
						//echo $_SERVER['REQUEST_URI'];
						header("Location:../Login.php");
						exit();
					}				
				}
				?>
		  <td width="43%" height="20" class="subHeader" id="dateformat">
            	&nbsp;&nbsp;
               <script language="JavaScript" type="text/javascript">
					document.write(TODAY);	
      			</script>
            </td>
            <td width="12%" colspan="2" align="right" class="subHeader">
        <?php
        session_start();	
				if($_SESSION["memberId"] != null && $_SESSION["memberId"] != "")
				{												
					echo "<a href=/listing/Login.php>ログアウト</a>";
				}				
				?>    		     		
     			</td>
    	</tr>
        </table>
    </td>
  </tr>
  <tr>
    <td colspan="7" bgcolor="#99CC66" background="/listing/images/mm_dashed_line.gif"><img src="/listing/images/mm_dashed_line.gif" alt="line decor" width="4" height="3" border="0" /></td>
  </tr>
  <tr>
    <td colspan="7" bgcolor="#5C743D"><img src="/listing/images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>
  </table>
  </div> 